package com.yipao.db.dao.goods;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoGoodsSpecification;
import com.yipao.db.domain.YipaoGoodsSpecificationExample;

public interface GoodsSpecificationMapper {

    long countByExample(YipaoGoodsSpecificationExample example);


    int deleteByExample(YipaoGoodsSpecificationExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoGoodsSpecification record);


    int insertSelective(YipaoGoodsSpecification record);


    YipaoGoodsSpecification selectOneByExample(YipaoGoodsSpecificationExample example);


    YipaoGoodsSpecification selectOneByExampleSelective(@Param("example") YipaoGoodsSpecificationExample example, @Param("selective") YipaoGoodsSpecification.Column ... selective);


    List<YipaoGoodsSpecification> selectByExampleSelective(@Param("example") YipaoGoodsSpecificationExample example, @Param("selective") YipaoGoodsSpecification.Column ... selective);


    List<YipaoGoodsSpecification> selectByExample(YipaoGoodsSpecificationExample example);


    YipaoGoodsSpecification selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoGoodsSpecification.Column ... selective);


    YipaoGoodsSpecification selectByPrimaryKey(Integer id);


    YipaoGoodsSpecification selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoGoodsSpecification record, @Param("example") YipaoGoodsSpecificationExample example);


    int updateByExample(@Param("record") YipaoGoodsSpecification record, @Param("example") YipaoGoodsSpecificationExample example);


    int updateByPrimaryKeySelective(YipaoGoodsSpecification record);


    int updateByPrimaryKey(YipaoGoodsSpecification record);


    int logicalDeleteByExample(@Param("example") YipaoGoodsSpecificationExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
